package cn.bocweb.spinning.view;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import cn.bocweb.spinning.R;
import cn.bocweb.spinning.util.DeviceUtil;

/**
 * Created by chenchangxing on 16/1/11.
 */
public class TestAAFragment extends Fragment {
    @Override
    public void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        DeviceUtil.Log("Fragement onCreate" + DeviceUtil.getDateTime(DeviceUtil.getDateFromMillis(System.currentTimeMillis())));
    }

    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        DeviceUtil.Log("Fragement onCreateView" + DeviceUtil.getDateTime(DeviceUtil.getDateFromMillis(System.currentTimeMillis())));
        return inflater.inflate(R.layout.test_main_aaa, null);
    }

    @Override
    public void onStart() {
        super.onStart();
        DeviceUtil.Log("Fragement onStart" + DeviceUtil.getDateTime(DeviceUtil.getDateFromMillis(System.currentTimeMillis())));
    }

    @Override
    public void onResume() {
        super.onResume();
        DeviceUtil.Log("Fragement onResum" + DeviceUtil.getDateTime(DeviceUtil.getDateFromMillis(System.currentTimeMillis())));
    }

    @Override
    public void onPause() {
        super.onPause();
        DeviceUtil.Log("Fragement onPause" + DeviceUtil.getDateTime(DeviceUtil.getDateFromMillis(System.currentTimeMillis())));
    }

    @Override
    public void onStop() {
        super.onStop();
        DeviceUtil.Log("Fragement onStop" + DeviceUtil.getDateTime(DeviceUtil.getDateFromMillis(System.currentTimeMillis())));
    }
}
